import request from '@/utils/request'

export function selectItem(params) {
  return request({
    url: '/redflag/selectItem',
    method: 'POST',
    data: params
  })
}

export function selectItemCount(params) {
  return request({
    url: '/redflag/selectItemCount',
    method: 'POST',
    data: params
  })
}

export function deleteItem(params) {
  return request({
    url: '/redflag/deleteItem',
    method: 'POST',
    data: params
  })
}

export function insertCountItem(params) {
  return request({
    url: '/redflag/insertCountItem',
    method: 'POST',
    data: params
  })
}

export function reportCountItem(params) {
  return request({
    url: '/redflag/reportCountItem',
    method: 'POST',
    data: params
  })
}

export function selectItemCountExportExcel(params) {
  return request({
    url: '/redflag/selectItemCountExportExcel?start_time=' + params.start_time + '&end_time=' + params.end_time + '&daynum=' + params.daynum + '&token=' + params.token,
    method: 'get'
  })
}
